if(Corner) throw new Error("Side.js should be called before Corner.js")
/** @class Sides 
	@description injecte la structure html permetant la realisation d'ombre portee 
	@use 
			l'utilisation de la structure block/blockInside est indispensable pour l'execution du script.
			
			<div class="block">
				<div class="blockInside"></div>
			</div>
			
			En effet, le script va injecter la structure des coins entre les 2 <div>
			
			html apres l'execution du script:
			
			<div class="block">
				<span class="sideL"></span>
				<span class="sideR"></span>
				<span class="sideT"></span>
				<div class="blockInside"></div>
				<span class="sideB"></span>
			</div>
			
			le skin des side est gere via CSS, ce reporter a la section /* blockShadow * de default.css
			
	@return behavior
*/
var Sides = new Moodules({
	required: ["css", "image"],
	initialize: function (block){
		var sideL = new Element("span", {"class":"sideL"});
		var sideR = new Element("span", {"class":"sideR"});
		var sideT = new Element("span", {"class":"sideT"});
		sideT.injectTop(block);
		sideR.injectTop(block);
		sideL.injectTop(block);
		
		var sideB = new Element("span", {"class":"sideB"});
		sideB.injectBottom(block);
	}
})
// Moodule.register("Sides", "div.blockShadow");
